<?php

namespace Syrius\Model;

/**
 * Enter description here ...
 * @package Model
 * @author	Domenico Biancardi <domenico.biancardi@gmail.com>
 * @link	http://code.google.com/p/syrius/
 *
 */ class View extends Model {
	protected $_select;

	/**
	 * Operazione che avvia il migrate del modello sul database
	 */
	public function migrate() {
		$this->_driver->migrateView($this);
	}

	public function getSelect() {
		return $this->_select;
	}

	public function __construct($connectionName = "default") {
		$this->_driver = new \Syrius\Adapter\DAO ($connectionName);
		if ($this->_table == "")
			throw new Exception ("Table not defined");
	}

}

?>
